package com.ebspp.client.serverManager;

import java.util.Map;

import com.ebspp.thrift.ResourceType;

/**
 * statistics to for the connections
 * @author x23pan
 *
 */
public interface IStat {
	public void setMsgDelay(String server, float duration);
	public void setWriteDelay(String server, float duration, int amount, ResourceType resType);
	public void setReadDelay(String server, float duration, int amount, ResourceType resType);
	
	public void setWriteFail(String server, ResourceType resType, int amount);
	public void setReadFail(String server, ResourceType resType, int amount);
	
	public void setFatal(String server);
	
	public void setResource(String server, Map<ResourceType, Integer> resMap);
}
